import request from '@/utils/request'

// 查询子订单列表
export function listAppOrderItem(query) {
  return request({
    url: '/taskhub/AppOrderItem/list',
    method: 'get',
    params: query
  })
}

// 查询子订单详细
export function getAppOrderItem(id) {
  return request({
    url: '/taskhub/AppOrderItem/' + id,
    method: 'get'
  })
}

// 新增子订单
export function addAppOrderItem(data) {
  return request({
    url: '/taskhub/AppOrderItem',
    method: 'post',
    data: data
  })
}

// 修改子订单
export function updateAppOrderItem(data) {
  return request({
    url: '/taskhub/AppOrderItem',
    method: 'put',
    data: data
  })
}

// 删除子订单
export function delAppOrderItem(id) {
  return request({
    url: '/taskhub/AppOrderItem/' + id,
    method: 'delete'
  })
}
